# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
# Contributor: Johannes Marbach <n0-0ne+gitlab@mailbox.org>
pkgname=gpodder-adaptive
pkgver=3.11.4
_plusver=1
pkgrel=2
pkgdesc="Podcast aggregator (adaptive version)"
url="https://github.com/gpodder/gpodder/tree/adaptive"
arch="all !s390x !riscv64" # blocked by adwaita-icon-theme
license="GPL-3.0-or-later"
depends="
	adwaita-icon-theme
	libhandy1
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-html5lib
	py3-mygpoclient
	py3-podcastparser
	py3-requests
	python3
	xdg-utils
"
makedepends="py3-setuptools intltool help2man"
checkdepends="py3-pytest py3-pytest-httpserver py3-pytest-cov py3-minimock desktop-file-utils"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="gpodder-adaptive-$pkgver+$_plusver.tar.gz::https://github.com/gpodder/gpodder/archive/refs/tags/adaptive/$pkgver+$_plusver.tar.gz
	0001-Replace-the-removed-imp-module-with-importlib.patch"
builddir="$srcdir/gpodder-adaptive-$pkgver-$_plusver"

check() {
	make unittest
}

package() {
	make install PREFIX=/usr DESTDIR=$pkgdir

	touch no-update-check
	install -Dm644 no-update-check -t "$pkgdir"/usr/share/gpodder
}

sha512sums="
c5920a74abd8deecdbf0a643cdf9ff818e3f5c220195d6a658627ff1856fc4a7c7bcac98fe4dd2efa576388219d0dd3a37bf1156f33d39a13eab96bccf321dee  gpodder-adaptive-3.11.4+1.tar.gz
ae5383aaed6e67f582d9dff2e2aaba3735022578bc6b7de525fec7cc456d67ad01197ed41a4f5046d3774d5bc3b884ab65f066c7f3a78fd7e023106176f32870  0001-Replace-the-removed-imp-module-with-importlib.patch
"
